import React, { useState } from 'react';
import MyContext from './MyContext';
import InputView from './InputView';
import MsgList from './MsgList';
const MsgBox = () => {
  const [list, setList] = useState([{ id: 1, msg: 'hello', date: '2022-2-11' }])
  return (
    <MyContext.Provider value={{ list, setList }}>
      <InputView />
      <MsgList />
    </MyContext.Provider>
  );
}

export default MsgBox;
